package cn.itcast.nems.studentrecord.service.studentrecord;


import cn.itcast.nems.studentrecord.dao.entity.StudentRecordDiscount;
import cn.itcast.nems.studentrecord.dto.studentrecord.StudentRecordDiscountListDTO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 学籍优惠表 服务类
 * </p>
 *
 * @author liyong
 * @since 2023-11-14
 */
public interface StudentRecordDiscountService extends IService<StudentRecordDiscount> {

    /**
     * 更新学籍的优惠信息
     *
     * @param studentRecordId        学籍ID
     * @param studentRecordDiscounts 新的优惠信息
     */
    void updateDiscounts(String studentRecordId, List<StudentRecordDiscount> studentRecordDiscounts);

    /**
     * 根据学籍ID查询优惠项
     * @param recordId 学籍ID
     * @return 优惠项
     */
    StudentRecordDiscountListDTO findAllDiscountByRecordId (String recordId) ;
}
